package Thread2;

/**
 * @Author wangzhipeng
 * @Date 2020-08-20 3:12 下午
 * @Description
 */
public class PriorityDemo {
    public static void main(String[] args) {
        MyThread6 myThread6 = new MyThread6();
        myThread6.setPriority(Thread.MAX_PRIORITY);//设置优先级 最大10 默认5 最小1

    }
}


class MyThread6 extends Thread{
    @Override
    public void run() {
        System.out.println("1111111");
    }
}
